#include <stdio.h>
#include <math.h>

int main()
{
    int sum = 0;
    int input = 0;
    while(scanf("%d", &input), input > 0)
    {
        if(input & 0x01)sum += input;
    }
    printf("%d\n", sum);
    return 0;
}